Skip to content

新增 deepseek-v4-flash-vision-exp 用量监控 + 窗口可缩放/响应式布局 - #11

Open
Tsuki-hash wants to merge 3 commits into
Joyi-code:masterfrom
Tsuki-hash:vision-model-monitoring
Open

新增 deepseek-v4-flash-vision-exp 用量监控 + 窗口可缩放/响应式布局#11
Tsuki-hash wants to merge 3 commits into
Joyi-code:masterfrom
Tsuki-hash:vision-model-monitoring

Conversation

@Tsuki-hash

Copy link
Copy Markdown

1. 新增模型监控 / New model monitoring

  • 后端 fetch_usage 模型白名单新增 deepseek-v4-flash-vision-exp(内部 key flashvision);UsageDaySummary 增加 vision 的 tokens / cache_hit / cache_miss / response 四字段;日聚合循环同步新增对应分支。
  • 前端仪表盘在 V4 FlashV4 Pro 之间插入「V4 Flash Vision」行(与 Flash 家族相邻),UsageChart 合并其 hit/miss/response,ModelDetailPanel 增加对应分支。
  • Backend fetch_usage allowlist adds deepseek-v4-flash-vision-exp (key flashvision); UsageDaySummary gains four vision fields; daily aggregation adds the matching branch. The dashboard inserts a "V4 Flash Vision" row between Flash and Pro, with UsageChart / ModelDetailPanel updated accordingly.

Tsuki-hash and others added 3 commits September 1, 2026 17:06
- Backend (lib.rs): whitelist the new model in fetch_usage; extend UsageDaySummary with 4 vision fields and add the day-aggregation branch.

- Frontend (main.tsx + styles.css): add flashvision model type, render the V4 Flash Vision row between Flash and Pro, merge it into the cache-hit trend chart and the model detail panel; add rose-red theme tokens.

- Bump version to 1.2.0 in package.json and tauri.conf.json.

- Update zh/en README changelog and download filename.
- tauri.conf.json: 窗口改 resizable,默认 384x660,最小 340x540
- styles.css: 面板填满窗口;固定区块 flex:0 0 auto、图表区 flex:1 1 auto 吸收剩余高度;字号/间距/最小高度改用 clamp(vw/vh) 随窗口缩放
- 移除所有滚动效果(平滑/惯性/自动/动画),dashboard 不再滚动,settings 滚动即时无过渡、无自定义滚动条;全局 scroll-behavior:auto

Co-Authored-By: WorkBuddy <noreply@workbuddy.ai>
src-tauri/Cargo.toml 缺少整个 [features] 段,custom-protocol 未启用,
导致 tauri::is_dev() 恒为 true(其定义为 !cfg!(feature = "custom-protocol")),
release exe 也会走开发分支去连 devUrl=http://127.0.0.1:5180,
页面报 ERR_CONNECTION_REFUSED / 127.0.0.1 拒绝连接。

- 补 [features] custom-protocol = ["tauri/custom-protocol"](勿删)
- 构建须显式带该 feature:cargo build --release --features custom-protocol
- 版本 1.1.0 -> 1.2.0,与 package.json / tauri.conf.json 对齐

Co-Authored-By: WorkBuddy <noreply@workbuddy.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant